import IDictPageForm from '@/model/form/dict/IDictPageForm'
import IResVO from '@/model/vo/common/IResVO'
import IDictVO from '@/model/vo/dict/IDictVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 查询字典（树结构）
export default function dictTreeApi(form: IDictPageForm) {
  return $http.post<IResVO, AxiosResponse<IResVO<IDictVO[]>>>(
    '/dict/tree',
    form
  )
}
